﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Model;
using BLL;
public partial class WebControl_Welcome : System.Web.UI.UserControl
{
    protected string lstLoginTime;
    protected int unreadCount;
    protected string userName;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            SessionUser sUser = BaseLogin.getSessionNode(HttpContext.Current);
            lstLoginTime = sUser.lastLoginTime.ToString();
            userName = sUser.userName;
            BLL.MessageBLL bll = new MessageBLL();
            unreadCount = bll.GetUnreadCount(sUser.uid);
        }
    }
}
